﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASoft.Msg
{
    /// <summary>
    /// Double Byte Property Attriubte
    /// </summary>
    public class DPAttribute : Attribute
    {
        public DPAttribute(byte lowOrder, byte hightOrder, bool onlyRead)
        {
            this.LowOrder = lowOrder;
            this.HightOrder = hightOrder;

            this.OnlyRead = onlyRead;
        }

        public DPAttribute(byte lowOrder, byte hightOrder)
            : this(lowOrder, hightOrder, false)
        {
        }

        public byte LowOrder { get; private set; }

        public byte HightOrder { get; private set; }

        public bool OnlyRead { get; private set; }
    }
}
